GDK GL context's should associate with "window->impl_window" not "window"
authorNiels Nesse <nnesse@sonic.net>
Sun, 18 Jan 2015 07:21:35 +0000 (23:21 -0800)
committerEmmanuele Bassi <ebassi@gnome.org>
Wed, 28 Jan 2015 12:00:30 +0000 (12:00 +0000)
commit00834786be3b280dd048d234ee6bb188d01e1ff8
tree6c8f27ff2d7679562392d622d232aaaa8ba5acca
parent27cf0fa34c3a51ddb50391f21aaf2e3984d6dddb
GDK GL context's should associate with "window->impl_window" not "window"

In some layouts this inconsistency results in crashes in
gdk_gl_texture_from_surface() since it uses gdk_gl_context_get_window() but
the returned window is not the same as the one that is being painted so
"window->current_paint.surface" is NULL. I saw this problem when packing a
GdkGLArea into a GtkPaned.

https://bugzilla.gnome.org/show_bug.cgi?id=743146
gdk/gdkwindow.c